/*
 * Copyright (c) 2005, 2014 vacoor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.vacoor.nothing.web.spring.web.bind;

import org.vacoor.nothing.web.domain.Sort;

import java.lang.annotation.*;

/**
 * 排序 Ps: 暂时没用了
 */
@Deprecated
@Inherited
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface SortDefault {

    String[] value();   // 排序属性

    Sort.Direction dir() default Sort.Direction.ASC;

    /**
     * 包装排序, 给单独使用排序时 留用
     */
    @Inherited
    @Target({ElementType.PARAMETER})
    @Retention(RetentionPolicy.RUNTIME)
    public @interface SortDefaults {

        SortDefault[] value();

    }
}
